#ifndef __KEY_H__
#define __KEY_H__
#include "lib_config.h"
#include "led.h"

extern uint8_t key1_press_flag;    
extern uint8_t key2_press_flag;
extern uint8_t key3_press_flag;
extern uint8_t key4_press_flag;
extern uint8_t key5_press_flag;

extern uint16_t key1_hold_time;    
extern uint16_t key2_hold_time;
extern uint16_t key3_hold_time;
extern uint16_t key4_hold_time;
extern uint16_t key5_hold_time;


//extern uint8_t g_led_buf[4];

extern uint8_t KeyGetValue(void);
void KeyInit(void);    
int16_t Key_Handle(void);
void model_selsct(void);
#endif
